#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int a = 0;
    int b = (unsigned int)a;
    int count = 0;
    while (b % 10)
    {
        b = b % 10;
    }
    printf("%d", b);

    return 0;
}
int main() {
    int a = 0;
    scanf("%d", &a);
    int b = (unsigned int)a;
    printf("%d", b / 10 % 10);
    return 0;
}
int main() {
    int a = 0;
    scanf("%d", &a);
    //int b=(unsigned int)a;
    int b = sqrt(a);
    printf("%d", b);
    return 0;
}
int main() {
    int a = 0;
    scanf("%d", &a);
    int b = a;
    while (b)
    {

        printf("%d", b % 10);
        b /= 10;
    }
    return 0;
}
int main() {
    float k = 0;
    float c = 0;
    scanf("%f", &k);
    c = k - 273.15;
    printf("%f", c * 1.8 + 32);
    return 0;
}
int main() {
    int x1, y1, x2, y2;
    scanf("%d %d", &x1, &y1);
    scanf("%d %d", &x2, &y2);
    double d1 = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
    double d2 = (abs)(x1 - x2) + (abs)(y1 - y2);
    double n = (fabs)(d1 - d2);
    printf("%lf", n);
    return 0;
}

int main() {
    int a = 0;
    scanf("%d", &a);
    int b = a;
    int sum = 0;
    while (b)
    {
        sum = sum + b % 10;
        b /= 10;

    }
    printf("%d", sum);

    return 0;
}
int main() {
    int a, b, c, d;
    scanf("%d", &a);
    b = a / 3600;
    c = a % 3600 / 60;
    d = a % 3600 % 60;
    printf("%d %d %d", b, c, d);
    return 0;
}
